<%= form_for(@cart) do |f| %>
  <% if @cart.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@cart.errors.count, "error")%> prohibited this product from being saved: </h2>
      <ul>
        <% @product.errors.full_messages.each do |msg|  %>
          <li><%= msg%></li>
        <% end %>
      </ul>
    </div>
  <% end %>

 <div class="actions">
   <%= f.submit %>
</div>

<% end %>
